<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var a = prompt('现在几点')
        if (a < 10) {
            alert('早上好')
        }else if(a <= 13) {
            alert('中午好')
        }else if (a <= 17) {
            alert('晚上好')
        }else {
            alert('该洗洗睡了，憨批')
        }
    </script>
</body>
</html>